home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
vbusprobe5x.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
1KB
|
30 lines
CREATE OR REPLACE VIEW VBUSPROBE5x AS
SELECT /*PROBEHIST.pdate,
PROBEHIST.conversion_num,
PROBEHIST.cbintent pull,*/
CONVERT.END_DATE pdate,
CONVERT.CONVERSION_NUM,
DECODE(PROBEHIST.CBINTENT, NULL, 0, PROBEHIST.cbintent) pull,
/* */
vvbpmoneydet.probedcash,
vvbpmoneydet.sm_tokens,
vvbpmoneydet.lg_tokens,
vvbpmoneydet.t_sm_tokens,
vvbpmoneydet.t_lg_tokens,
vvbpmoneydet.totalcash,
vvbpmoneydet.cashbox_glid,
vvbpmoneydet.close_count,
vprevinsert.insert_date ,
convert.farebox_GLID ,
BUS.BUS_ID ,
GARAGE.GARAGE_ID
FROM CONVERT, PROBEHIST, vvbpmoneydet , vprevinsert , FAREBOX, BUS, GARAGE
WHERE
/*PROBEHIST*/ CONVERT.conversion_num = vvbpmoneydet.conversion_num AND
vvbpmoneydet.conversion_num = vprevinsert.conversion_num(+) AND
vvbpmoneydet.close_count = vprevinsert.close_count(+) AND
CONVERT.CONVERSION_NUM = PROBEHIST.CONVERSION_NUM(+) AND
/*PROBEHIST */ CONVERT.FAREBOX_GLID = FAREBOX.GLID AND
FAREBOX.LOCATION = BUS.GLID AND
BUS.GARAGEID = GARAGE.GLID;